package com.zy.springcloud.cloudconsumeruser.service.Impl;

import com.zy.springcloud.cloudconsumeruser.bean.User;
import com.zy.springcloud.cloudconsumeruser.dao.UserDao;
import com.zy.springcloud.cloudconsumeruser.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: zy 690748807@qq.com
 * @Description: TODO
 * @Date: 2024/3/30 15:51
 * @Version: 1.0
 * @name 方法名字：
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserDao userDao;

    /**
     * @param id
     * @return
     */
    @Override
    public User getUserId(Integer id) {
        return userDao.getUserDaoById(id);

    }
}
